﻿using Mirror;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Slot : MonoBehaviour
{
    public enum SlotSize
    {
        WEAPON_SIZE_SMALL,
        WEAPON_SIZE_MIDDLE,
        WEAPON_SIZE_BIG
    };
    public SlotSize Size = SlotSize.WEAPON_SIZE_SMALL;
    public GameObject EmiterObject;
    public GameObject HighLightObj;
    public Ship m_Ship;
    void Start()
    {
        
    }

    // Update is called once per frame
    protected virtual void Update()
    {
        if(HighLightObj && HighLightObj.activeSelf)
        {

            float time = (Mathf.Sin(Time.time * 10) + 1 * 0.5f);
            HighLightObj.transform.localRotation = 
                Quaternion.AngleAxis(HighLightObj.transform.localRotation.eulerAngles.z + Time.deltaTime * time * 180,
                new Vector3(0, 0, 1));

            float scale = time * 0.5f + 2f;
            HighLightObj.transform.localScale = new Vector3(scale, scale, scale);
        }
    }
}
